package com.stm.bi.dto.vo;

import com.stm.framework.annotation.ResParam;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @Description:
 * @Author: bo
 * @Date: 2023/06/28 16:48
 */
public class ChartVO {

    @ResParam(label = "名称")
    private String name;

    @ResParam(label = "数据项")
    private List<String> items;

    @ResParam(label = "数据集")
    private List<List<Object>> datas = new ArrayList<>();

    public ChartVO() {
        this.items = new ArrayList<>(Collections.singletonList("product"));
    }

    public List<String> getItems() {
        return items;
    }

    public ChartVO setItems(List<String> items) {
        this.items = items;
        return this;
    }

    public List<List<Object>> getDatas() {
        return datas;
    }

    public ChartVO setDatas(List<List<Object>> datas) {
        this.datas = datas;
        return this;
    }

    public String getName() {
        return name;
    }

    public ChartVO setName(String name) {
        this.name = name;
        return this;
    }
}
